package kingiis.utils.simpleapp;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bumptech.glide.Glide;

/**
 * Created by King on 2018/1/4 0004.
 */

public abstract class BFra extends Fragment {
    Context context;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        context = getActivity();
        Glide.get(context).clearMemory();
        InitView(context);
        return thisLayout();
    }

    /**
     * 处理view 然后交给getView
     */
    public abstract View InitView(Context context);

    /**
     * 接收initview 给的处理过的view
     */
    public abstract View thisLayout();

}
